package com.hmall.clients;

import com.hmall.common.pojo.Address;
import com.hmall.config.feignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "userservice",configuration = feignConfig.class)
public interface UserserviceClient {
    @GetMapping("/address/{id}")
    public Address findAddressById(@PathVariable("id") Long id);
}
